 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var o = {
        x: 10,
        y: 20
    };
    (function() {
        this.x = 30;
        this.draw = function () {
            console.log(x);
            console.log(y);
        }
    }.call(o));

    console.log(o);

</script>
</body>
</html>